﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataCompareResult.cs" company="">
//   
// </copyright>
// <summary>
//   The data compare result.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace UITest.Helpers.TableCompare
{
    using System.Collections.Generic;

    /// <summary>
    ///     The data compare result.
    /// </summary>
    public class DataCompareResult
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="DataCompareResult"/> class.
        /// </summary>
        /// <param name="isMatching">
        /// The is matching.
        /// </param>
        /// <param name="messages">
        /// The messages.
        /// </param>
        /// <param name="differenceList">
        /// The difference list.
        /// </param>
        public DataCompareResult(bool isMatching, string messages, IList<DataTableDifference> differenceList = null)
        {
            this.Differences = differenceList;
            this.Messages = messages;
            this.IsMatching = isMatching;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the differences.
        /// </summary>
        public IList<DataTableDifference> Differences { get; private set; }

        /// <summary>
        ///     Gets a value indicating whether is matching.
        /// </summary>
        public bool IsMatching { get; private set; }

        /// <summary>
        ///     Gets the messages.
        /// </summary>
        public string Messages { get; private set; }

        #endregion
    }
}